import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/queue/business-queue/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/queue/business-queue/create',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/queue/business-queue/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/queue/business-queue/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/queue/business-queue/update',
    method: 'put',
    data: obj
  })
}

export function listQueueWindow(queueId) {
  return request({
    url: '/queue/business-queue/list-queue-win/' + queueId,
    method: 'get'
  })
}

export function bindQueueWindow(obj) {
  return request({
    url: '/queue/business-queue/bind-queue-window',
    method: 'post',
    data: obj
  })
}

export function listAllQueue() {
  return request({
    url: '/queue/business-queue/list',
    method: 'get'
  })
}

